package com.woniuxy.company5.service.impl;


import com.woniuxy.company5.dto.ZhaiDto;
import com.woniuxy.company5.dto.ZhaiUserDto;
import com.woniuxy.company5.entity.UserEmp;
import com.woniuxy.company5.mapper.UserEmpMapper;
import com.woniuxy.company5.service.UserEmpService;
import com.woniuxy.company5.dto.UserEmpDto;

import com.woniuxy.company5.vo.EchartsVo;
import com.woniuxy.company5.vo.ZhaiUserVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author ：fengsir
 * @date ：Created in 2022/12/6 14:14
 * @description：
 * @modified By：
 * @version: $
 */

@Service
public class UserEmpServiceImpl implements UserEmpService {
    @Resource
    private UserEmpMapper userEmpMapper;

    @Override
    public UserEmp selectByAccount(String account) {
        return userEmpMapper.selectByAccount(account);
    }

    @Override
    public List<ZhaiUserVo> selAll(ZhaiUserDto userDto) {
        return userEmpMapper.selAll(userDto);
    }

    @Override
    public UserEmp selectByTel(String tel, String name) {
        return userEmpMapper.selectByTel(tel,name);
    }



    @Override
    public int deleteByPrimaryKey(Long id) {
        return userEmpMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserEmp record) {
        return 0;
    }

    @Override
    public int insertSelective(ZhaiDto record) {
        return userEmpMapper.insertSelective(record);
    }

    @Override
    public UserEmp selectByPrimaryKey(Long id) {
        return userEmpMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ZhaiDto record) {
        return userEmpMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserEmp record) {
        return userEmpMapper.updateByPrimaryKey(record);


}

    @Override
    public UserEmp selectByAccAndPwd(UserEmpDto userEmpDto) {
        return userEmpMapper.selectByAccAndPwd(userEmpDto);
    }

    @Override
    public List<EchartsVo> groupByDid() {
        return userEmpMapper.groupByDid();
    }
    public UserEmp selectByName(String name) {
        return userEmpMapper.selectByName(name);
    }
}